import { ApiProperty } from '@nestjs/swagger';
import { IsHash, IsUUID } from 'class-validator';

export class ResetPasswordAdminReqDto {
  @ApiProperty({ description: '用户Uuid' })
  @IsUUID('4', { message: '用户Uuid格式不正确' })
  readonly user_uuid: string;

  @ApiProperty({ description: '新密码' })
  @IsHash('md5', { message: '密码加密方式错误' })
  readonly password: string;
}
